package com.study.model.pojo.HRpojo;

import java.io.Serializable;
import javax.persistence.*;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;


/**
 * The persistent class for the interview_tab database table.
 * 
 */
@Entity
@Table(name="interview_tab")
@NamedQuery(name="InterviewTab.findAll", query="SELECT i FROM InterviewTab i")
public class InterviewTab implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int interid;

	private String appremark;

	@ManyToOne
	@JoinColumn(name="empid")
	private EmpTab empTab;
	
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@Temporal(TemporalType.TIMESTAMP)
	private Date interdate;

	private int resid;

	//bi-directional many-to-one association to ResumeTab
	@ManyToOne
	@JoinColumn(name="resid")
	private ResumeTab resumeTab;

	public InterviewTab() {
	}

	public int getInterid() {
		return this.interid;
	}

	public void setInterid(int interid) {
		this.interid = interid;
	}


	public String getAppremark() {
		return this.appremark;
	}

	public void setAppremark(String appremark) {
		this.appremark = appremark;
	}

	public EmpTab getEmpTab() {
		return empTab;
	}

	public void setEmpTab(EmpTab empTab) {
		this.empTab = empTab;
	}

	public Date getInterdate() {
		return this.interdate;
	}

	public void setInterdate(Date interdate) {
		this.interdate = interdate;
	}

	public int getResid() {
		return this.resid;
	}

	public void setResid(int resid) {
		this.resid = resid;
	}
	public ResumeTab getResumeTab() {
		return this.resumeTab;
	}

	public void setResumeTab(ResumeTab resumeTab) {
		this.resumeTab = resumeTab;
	}

}